#ifndef SDL_RESOURCES_HPP
#define SDL_RESOURCES_HPP
#include "SDL.h"
#include <random>
using namespace std;

extern SDL_Window* window;
extern SDL_Renderer* render;
extern SDL_Texture* canva;
extern bool isquit;

extern default_random_engine e;

#define GRID_COL 80
#define GRID_ROW 45

#define CURSE_WIDTH 16
#define CURSE_HEIGHT 16

#define CANVA_WIDTH (GRID_COL*CURSE_WIDTH)
#define CANVA_HEIGHT (GRID_ROW*CURSE_HEIGHT)

#define MAKE_VERSION(major, minor, patch) #major "." #minor "." #patch

#define PIXEL2GRID_W(x) (x/CURSE_WIDTH)
#define PIXEL2GRID_H(y) (y/CURSE_HEIGHT)

extern const char* const version;

void Exit();

#endif

